package com.linjacy.container.product.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.linjacy.common.utils.PageUtils;
import com.linjacy.common.utils.Query;

import com.linjacy.container.product.dao.StandardDao;
import com.linjacy.container.product.entity.StandardEntity;
import com.linjacy.container.product.service.StandardService;


@Service("standardService")
public class StandardServiceImpl extends ServiceImpl<StandardDao, StandardEntity> implements StandardService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<StandardEntity> page = this.page(
                new Query<StandardEntity>().getPage(params),
                new QueryWrapper<StandardEntity>()
        );

        return new PageUtils(page);
    }

}